package com.magus.project.yddemo.entity;

import javax.persistence.Column;
import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.magus.framework.core.entity.BaseEntity;
import com.magus.framework.system.entity.Company;

/**
 * 指标数据更新日志
 * 
 * @author Zhang JiaWei
 * @date 2018-01-18 15:52
 */
@Entity
@Table(name = "YDDEMO_INDICATOR_MAPPER_DATA_LOG")
public class IndicatorMapperDataLog extends BaseEntity {

	/**   */
	private static final long serialVersionUID = 1L;

	@ManyToOne
	@JoinColumn(name = "COMPANYR_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private Company company;

	@Column(name = "UPDATE_TIME_")
	private Long updateTime;

	@Column(name = "USETIME_")
	private Long useTime;

	@Column(name = "OP_USERNAME_")
	private String opUserName;

	@Column(name = "LOGINFO_", length = 1000)
	private String logInfo;

	private Boolean success;

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public Long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUseTime() {
		return useTime;
	}

	public void setUseTime(Long useTime) {
		this.useTime = useTime;
	}

	public String getOpUserName() {
		return opUserName;
	}

	public void setOpUserName(String opUserName) {
		this.opUserName = opUserName;
	}

	public String getLogInfo() {
		return logInfo;
	}

	public void setLogInfo(String logInfo) {
		this.logInfo = logInfo;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

}
